Skip to content

Conversation

@skipkayhil
Copy link
Member

Fixes rails/rails#50671

Rails 7.1 included a change to allow using importmaps along with all cssbundling options. However, the Bootstrap installer was never updated to take this new default into effect (and is currently broken because of this).

This commit adds the additional configuration required to use the Bootstrap npm package with importmaps so that "rails new" generates an application that runs without errors.

Rails 7.1 included a [change][1] to allow using importmaps along with
all cssbundling options. However, the Bootstrap installer was never
updated to take this new default into effect (and is currently broken
because of this).

This commit adds the additional configuration required to use the
Bootstrap npm package with importmaps so that "rails new" generates an
application that runs without errors.

[1]: rails/rails@84458a8
@Peredery
Copy link

fyi, twbs/bootstrap-rubygem#271

@manuelmeurer
Copy link

@Peredery Note that cssbundling uses the Bootstrap npm package, not the gem that you linked to.

@dhh dhh merged commit 3e768cd into rails:main Jan 21, 2024
@skipkayhil skipkayhil deleted the hm-fix-bootstrap-importmap branch January 21, 2024 19:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

"rails new app --css bootstrap" produce Uncaught TypeError

4 participants